<template>
  <el-upload class="upload-demo" multiple :on-exceed="handleExceed">
    <el-button type="primary">导入</el-button>
  </el-upload>
</template>
<script setup>
import { ref } from "vue";

const handleExceed = (files, uploadFiles) => {
  ElMessage.warning(
    `The limit is 3, you selected ${files.length} files this time, add up to ${
      files.length + uploadFiles.length
    } totally`
  );
};
</script>
